#pragma once

#include "ProtocolBase.h"
#include "../Utils/netTools.h"

namespace protocol
{
    class SocketClient: public TprotocolBaseClass
    {
    protected:
        TSocket sock;
		std::string host;
		uint16_t port;
		uint8_t connectTimeout_sec = 10;

        inline int setSocketNonblocking(const TSocket &socket){return ::setSocketNonblocking(socket);};    //将Socket设置为非阻塞
    };
}